package com.cloud.base.client.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cloud.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 系统权限-菜单权限、操作权限、API权限
 *
 * @author wwkk
 * @date 2019-07-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_authority")
@ApiModel(value="BaseAuthority对象", description="系统权限-菜单权限、操作权限、API权限")
public class BaseAuthority extends AbstractEntity {

private static final long serialVersionUID=1L;

    @TableId(value = "authority_id", type = IdType.ID_WORKER)
    private Long authorityId;

    @ApiModelProperty(value = "权限标识")
    private String authority;

    @ApiModelProperty(value = "菜单资源ID")
    private Long menuId;

    @ApiModelProperty(value = "API资源ID")
    private Long apiId;

    private Long actionId;

    @ApiModelProperty(value = "状态")
    private Integer status;


}
